package com.example.shengyin.dao;

import com.example.shengyin.entity.Attach;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AttchMapper {
    public Attach select(@Param("id")Long id);
    public List<Attach> list(@Param("pagestart")int pagestart, @Param("limit")int limit, @Param("attachuri")String attachuri);
//    public List<Attch> list2(@Param("cname")String cname);
    public int count(@Param("attachuri")String attachuri);
//    public int count2(@Param("cname")String cname);
    public int insert(Attach dAttach);
    public int update(Attach dAttach);
    public int delete(@Param("id")int id);
    public int deleteByIds(@Param("ids")String ids);
    public List<String> findCarouseel();
    List<Attach> page1(@Param("carousel")String carousel);
    List<String> give(@Param("carousel")String carousel);
    public Attach getAll(long id);

}
